<?php
namespace app\index\controller;
use think\Validate;
class Verify extends Base
{
    public function index(){
        $data = [
            'name' => '',
            'price'=> 55,
            'email' => '991313.com'
        ];
        $validate =  new \app\index\validate\User();

        if(!$validate->check($data)){
            halt($validate->geterror());
        }
    }
}